OptionsDsl

public final class OptionsDsl

Configures options for Engine.

Since

8.0.0

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Allows automatic starting of video and audio playbacks.

Link copied to clipboard
private Path chromiumDir

Sets the absolute path to the directory where Chromium binaries are located.

Link copied to clipboard

Sets the disk cache size, in bytes.

Link copied to clipboard

Disables DNS quick check.

Link copied to clipboard

Allows the file:// URIs to read other file:// URIs.

Link copied to clipboard
private final GoogleDsl google

Configures Google credentials.

Link copied to clipboard

Disables GPU rendering.

Link copied to clipboard

Enables the incognito mode for the default profile.

Link copied to clipboard

Sets the Chromium language, which is used on the default error pages and message dialogs.

Link copied to clipboard

Sets the license key required to perform operations with the engine.

Link copied to clipboard

Enables media routing.

Link copied to clipboard

Sets the password store type that specifies, which storage backend to use to encrypt cookies on Linux.

Link copied to clipboard

List of proprietary features to enable.

Link copied to clipboard

Sets the remote debugging port.

Link copied to clipboard

Sets how long the renderer can be unresponsive before it is considered hung.

Link copied to clipboard

Disables the Chromium sandbox.

Link copied to clipboard
private final SchemesDsl schemes

Associates the given URL schemes with the callbacks, so that all URL requests with the given schemes will be intercepted before they are sent out.

Link copied to clipboard

Adds the given origins to the white list, so that they will be treated as secure origins.

Link copied to clipboard
private List<String> switches

List of switches that will be passed to the Chromium process.

Link copied to clipboard

Disables the popup menu, which is displayed when a user performs long press on the touch screen.

Link copied to clipboard

Sets the custom user agent string, which is used to override engine's default user agent.

Link copied to clipboard
private Path userDataDir

Sets the absolute path to the directory where the user data is stored.

Link copied to clipboard

Disables the same-origin policy.

Functions

Link copied to clipboard
public final Boolean getAutoplayEnabled()

Allows automatic starting of video and audio playbacks.

Link copied to clipboard
public final Path getChromiumDir()

Sets the absolute path to the directory where Chromium binaries are located.

Link copied to clipboard
public final Long getDiskCacheSize()

Sets the disk cache size, in bytes.

Link copied to clipboard

Disables DNS quick check.

Link copied to clipboard

Allows the file:// URIs to read other file:// URIs.

Link copied to clipboard
public final GoogleDsl getGoogle()

Configures Google credentials.

Link copied to clipboard
public final Boolean getGpuDisabled()

Disables GPU rendering.

Link copied to clipboard

Enables the incognito mode for the default profile.

Link copied to clipboard
public final Language getLanguage()

Sets the Chromium language, which is used on the default error pages and message dialogs.

Link copied to clipboard

Sets the license key required to perform operations with the engine.

Link copied to clipboard

Enables media routing.

Link copied to clipboard

Sets the password store type that specifies, which storage backend to use to encrypt cookies on Linux.

Link copied to clipboard

List of proprietary features to enable.

Link copied to clipboard

Sets the remote debugging port.

Link copied to clipboard

Sets how long the renderer can be unresponsive before it is considered hung.

Link copied to clipboard
public final Boolean getSandboxDisabled()

Disables the Chromium sandbox.

Link copied to clipboard
public final SchemesDsl getSchemes()

Associates the given URL schemes with the callbacks, so that all URL requests with the given schemes will be intercepted before they are sent out.

Link copied to clipboard
public final List<String> getSecureOrigins()

Adds the given origins to the white list, so that they will be treated as secure origins.

Link copied to clipboard
public final List<String> getSwitches()

List of switches that will be passed to the Chromium process.

Link copied to clipboard

Disables the popup menu, which is displayed when a user performs long press on the touch screen.

Link copied to clipboard
public final UserAgent getUserAgent()

Sets the custom user agent string, which is used to override engine's default user agent.

Link copied to clipboard
public final Path getUserDataDir()

Sets the absolute path to the directory where the user data is stored.

Link copied to clipboard

Disables the same-origin policy.

Link copied to clipboard
public final Unit google(Function1<GoogleDsl, Unit> configuration)

Configures Google credentials.

Link copied to clipboard
public final Unit schemes(Function1<SchemesDsl, Unit> configuration)

Associates the given URL schemes with the callbacks, so that all URL requests with the given schemes will be intercepted before they are sent out.

Link copied to clipboard
public final Unit setAutoplayEnabled(Boolean autoplayEnabled)

Allows automatic starting of video and audio playbacks.

Link copied to clipboard
public final Unit setChromiumDir(Path chromiumDir)

Sets the absolute path to the directory where Chromium binaries are located.

Link copied to clipboard
public final Unit setDiskCacheSize(Long diskCacheSize)

Sets the disk cache size, in bytes.

Link copied to clipboard
public final Unit setDnsQuickCheckDisabled(Boolean dnsQuickCheckDisabled)

Disables DNS quick check.

Link copied to clipboard
public final Unit setFileAccessFromFilesAllowed(Boolean fileAccessFromFilesAllowed)

Allows the file:// URIs to read other file:// URIs.

Link copied to clipboard
public final Unit setGpuDisabled(Boolean gpuDisabled)

Disables GPU rendering.

Link copied to clipboard
public final Unit setIncognitoEnabled(Boolean incognitoEnabled)

Enables the incognito mode for the default profile.

Link copied to clipboard
public final Unit setLanguage(Language language)

Sets the Chromium language, which is used on the default error pages and message dialogs.

Link copied to clipboard
public final Unit setLicense(JxBrowserLicense license)

Sets the license key required to perform operations with the engine.

Link copied to clipboard
public final Unit setMediaRoutingEnabled(Boolean mediaRoutingEnabled)

Enables media routing.

Link copied to clipboard
public final Unit setPasswordStore(PasswordStore passwordStore)

Sets the password store type that specifies, which storage backend to use to encrypt cookies on Linux.

Link copied to clipboard
public final Unit setProprietaryFeatures(Set<ProprietaryFeature> proprietaryFeatures)

List of proprietary features to enable.

Link copied to clipboard
public final Unit setRemoteDebuggingPort(Integer remoteDebuggingPort)

Sets the remote debugging port.

Link copied to clipboard
public final Unit setRendererHangTimeout(Duration rendererHangTimeout)

Sets how long the renderer can be unresponsive before it is considered hung.

Link copied to clipboard
public final Unit setSandboxDisabled(Boolean sandboxDisabled)

Disables the Chromium sandbox.

Link copied to clipboard
public final Unit setSecureOrigins(List<String> secureOrigins)

Adds the given origins to the white list, so that they will be treated as secure origins.

Link copied to clipboard
public final Unit setSwitches(List<String> switches)

List of switches that will be passed to the Chromium process.

Link copied to clipboard
public final Unit setTouchMenuDisabled(Boolean touchMenuDisabled)

Disables the popup menu, which is displayed when a user performs long press on the touch screen.

Link copied to clipboard
public final Unit setUserAgent(UserAgent userAgent)

Sets the custom user agent string, which is used to override engine's default user agent.

Link copied to clipboard
public final Unit setUserDataDir(Path userDataDir)

Sets the absolute path to the directory where the user data is stored.

Link copied to clipboard
public final Unit setWebSecurityDisabled(Boolean webSecurityDisabled)

Disables the same-origin policy.